package com.sjhang.controller;


import com.sjhang.service.TbCounterService;
import com.sjhang.utils.ResultResponse;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 文章数据表
 *
 */
@Api(tags = {"文章浏览接口"})
@RestController
@RequestMapping("/tbCounter")
public class TbCounterController {

    @Resource
    private TbCounterService tbCounterService;


    /***
     * @description 查询自己的所有点赞与浏览
     */
    @PostMapping("/selectCounter")
    public ResultResponse selectCounter(Long userID){
        return tbCounterService.selectCounter(userID);
    }




}

